package com.design.adapter;

/**
 * @Author: ChengLei.Liu
 * @Date: 2020-06-10 10:57
 * @Description:
 */
public class Phone {

    private final int V = 5;

    public void recharge(Output5V output5V){
        int v = output5V.output5v();
        if(v == V){
            System.out.println("可以充电");
        }else {
            System.out.println("充电失败电压不符");
        }
    }
}
